package awk.designModel.adapter.clazz;


import awk.designModel.adapter.Adapter;
import awk.designModel.adapter.MyTarget;

/**
 * 类适配器模式:继承 Adaptee类,从而复用了Adaptee的方法
 */
public class ClassAdapter extends Adapter implements MyTarget {

	public static void main(String[] args) {
		System.out.println("类适配器模式测试：");
		MyTarget myTarget = new ClassAdapter();
		myTarget.request();
	}


	public void request() {
		specificRequest();
	}
}